package managers;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;

public class LogManager
{
	public static void log(String log, String info)
	{
		try
		{
			FileWriter fw = new FileWriter("C:/logs/log.txt", true);
			BufferedWriter output = new BufferedWriter(fw);
			Date now = new Date();
			log = now.toString() + "    ["+info+"]    " + log + "\r\n";
			output.write(log);
			output.flush();
			output.close();
		}
		catch(IOException ex)
		{
		    ex.printStackTrace();
		}
	}
}
